package com.zhl.dao_;

import com.zhl.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2018/11/6.
 */
@Mapper
public interface UserMapper {

    User login(@Param("username") String username, @Param("password") String password);
    User queryUserByid(@Param("id") int id);
    User queryUserByUsername(@Param("username")String username);
    List<User> userList();
    int deleteUserRoleById(@Param("id")int id);
    int addUserRole(@Param("id")int id,@Param("rid")String rid);
//    List<User> findUserByRoleId(@Param("id") String roleId);
    int addUser(User user);

}
